package com.learn.service.impl;

import com.learn.annotation.Secure;
import com.learn.model.User;
import com.learn.service.IHelloService;
import org.springframework.stereotype.Service;

@Service
public class HelloServiceImpl implements IHelloService {

    @Override
    public void sayHello(User user) {
        System.out.println(user.getName() + ":hello");
    }

    @Secure
    @Override
    public void secureSay() {
        System.out.println("hello");
    }
}
